home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / newmat03.lha / newmat03 / include.hxx < prev    next >
Text File  |  1993-08-08  |  3KB  |  101 lines

  1. //$$ include.hxx         include files required by various versions of C++
  2.  
  3. //#define Glock                         // for Glockenspiel on the PC
  4. //#define ATandT                        // for AT&T C++ on a Sun
  5. //#define GXX                           // for Gnu C++
  6.  
  7.  
  8. #define USING_DOUBLE                    // elements of type double
  9. //#define USING_FLOAT                   // elements of type float
  10.  
  11.  
  12.  
  13. #ifdef __ZTC__                          // Zortech
  14.    #include <stdlib.h>
  15.    #ifdef WANT_STREAM
  16.       #include <stream.hpp>
  17.       #define flush ""                  // doesn't have io manipulators
  18.    #endif
  19.    #ifdef WANT_MATH
  20.       #include <math.h>
  21.       #include <float.h>
  22.    #endif
  23. #endif
  24.  
  25. #ifdef __BCPLUSPLUS__                   // Borland
  26.    #include <stdlib.h>
  27.    #ifdef WANT_STREAM
  28.       #include <iostream.h>
  29.       #include <iomanip.h>
  30.    #endif
  31.    #ifdef WANT_MATH
  32.       #include <math.h>
  33.       #define SystemV                   // optional in Borland
  34.       #include <values.h>               // Borland has both float and values
  35.    #endif
  36.    #undef __TURBOC__                    // also defined in Borland
  37. #endif
  38.  
  39. #ifdef __TURBOC__                       // Turbo
  40.    #include <stdlib.h>
  41.    #ifdef WANT_STREAM
  42.       #include <iostream.h>
  43.       #include <iomanip.h>
  44.    #endif
  45.    #ifdef WANT_MATH
  46.       #include <math.h>
  47.       #define SystemV                   // optional in Turbo
  48.       #include <values.h>
  49.    #endif
  50. #endif
  51.  
  52. #ifdef ATandT                           // AT&T
  53. #include <stdlib.h>
  54. #ifdef WANT_STREAM
  55. #include <iostream.h>
  56. #include <iomanip.h>
  57. #endif
  58. #ifdef WANT_MATH
  59. #include <math.h>
  60. #define SystemV                         // must use System V on my Sun
  61. #include <values.h>                     //    as float.h is not present
  62. #endif
  63. #endif
  64.  
  65. #ifdef GXX                              // Gnu C++
  66.    #include <stdlib.h>
  67.    #ifdef WANT_STREAM
  68.       #include <stream.h>               // no iomanip in G++
  69.       #define flush ""
  70.    #endif
  71.    #ifdef WANT_MATH
  72.       #include <math.h>
  73.       #include <float.h>
  74.    #endif
  75. #endif
  76.  
  77. #ifdef Glock                            // Glockenspiel
  78.    extern "C" { #include <stdlib.h> }
  79.    #ifdef WANT_STREAM
  80.       #include <stream.hxx>
  81.       #include <iomanip.hxx>
  82.    #endif
  83.    #ifdef WANT_MATH
  84.       extern "C" { #include <math.h> }
  85.       extern "C" { #include <float.h> }
  86.    #endif
  87.    #define NO_LONG_NAMES                // very long names don't work
  88. #endif
  89.  
  90.  
  91.  
  92. #ifdef USING_FLOAT                      // set precision type to float
  93. typedef float real;
  94. typedef double long_real;
  95. #endif
  96.  
  97. #ifdef USING_DOUBLE                     // set precision type to double
  98. typedef double real;
  99. typedef long double long_real;
  100. #endif
  101.